from django.contrib import admin

# Register your models here.
from .models import Diary
from apps.member.category.models import Category



class DiaryAdmin(admin.ModelAdmin):
    list_display = ('title', 'describe', 'category','image','label','delete')  # list
    fields = ('user', 'describe', 'content','category', 'image', 'label')  # fields 属性定义了要显示的字段。


admin.site.register(Diary, DiaryAdmin)
